package 大四.sortpackage;

public class ChooseSort {
    public static void main(String[] args) {
        int []a = {4,9,1,3};
        int temp = 0;
        for (int i = 0; i < a.length; i++) {
            temp = 0;
            for (int j = i+1; j < a.length; j++) {
                if(a[i]>a[j]){
                    temp = a[i];
                    a[i] = a[j];
                    a[j] = temp;
                }

            }
        }
        for (int i:a) {
            System.out.print(i+" ");
        }





    }
}
